package cn.com.greatwall.user.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import cn.com.greatwall.common.model.SysMenu;
import cn.com.greatwall.db.mapper.SuperMapper;

/**
 * @Author herw
 * @Time 2022-02-19 15:14:50
 * @Version 1.0
 * @Description: 菜单
 */
@Mapper
public interface SysMenuMapper extends SuperMapper<SysMenu> {
    @Update(value = "update sys_menu set sub_count = #{count} where id = #{menuId}")
    void updateSubCntById(@Param("count") Long count, @Param("menuId") Long menuId);
}
